<!DOCTYPE html>
<html style="overflow-x: hidden">

<head>
    <meta charset="utf-8">
    <title>大屏展示</title>
    <!--公用样式-->
    <link rel="stylesheet" type="text/css" href="${re.contextPath}/plugin/common/css/comment.css"/>
    <link rel="stylesheet" type="text/css" href="${re.contextPath}/plugin/supplier/common/css/style.css"/>
    <!--Layui-->
    <link rel="stylesheet" href="${re.contextPath}/plugin/layui/css/layui.css" media="all"/>
    <!--extended-->
    <link rel="stylesheet" type="text/css" href="${re.contextPath}/plugin/common/css/extended.css"/>
    <!--公用样式JS-->
    <script type="text/javascript" src="${re.contextPath}/plugin/jquery/jquery-3.2.1.min.js"></script>
    <script type="text/javascript" charset="utf-8" src="${re.contextPath}/plugin/common/js/comment.js"></script>
    <script type="text/javascript" src="${re.contextPath}/plugin/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="${re.contextPath}/plugin/echarts/echarts-4.2.1.min.js" charset="utf-8"></script>

</head>
<style>
    .Right {
        width: 100%;
        overflow-y: hidden;
    }

    .widthle {
        width: 44%;
    }

    .widinput {
        width: 45% !important;
    }

    .headerbutton {
        background-size: 100%;
        width: 85px;
        height: 33px;
        position: relative;
    }

    .headerbutton img {
        width: 25px;
        height: 25px;
        padding: 4px 4px 5px 10px;
    }

    .headerbutton span {
        color: rgb(13, 155, 255);
    }

    .home {
        background-image: url('${re.contextPath}/plugin/common/images/2.png');
        /*background-size: 100%;*/
        /*width: 85px;*/
        /*position: relative;*/
        left: 25px;
        top: 35px;
    }

    .full {
        background-image: url('${re.contextPath}/plugin/common/images/2.png');
        /*background-size: 100%;*/
        left: 135px;
        top: 2px;
    }

    .headerTitle {
        width: 15%;
        position: relative;
        left: 42%;
        top: -33px;
        color: #FFFFFF;
        font-size: 19px;
        font-weight: bold;
        text-align: center;
    }

    .headerTitle img {
        width: 32px;
        /*margin-right: 8px;*/
        margin-left: -12.5%;
    }

    #datetime {
        width: 211px;
        text-align: center;
        position: relative;
        left: 81%;
        bottom: 65px;
        color: #FFFFFF;
    }

</style>

<body>
<!--头部-->

<!--容器-->
<div class="container clearfix">
    <!--右侧内容-->
    <div class="header"
         style="background-image: url('${re.contextPath}/plugin/common/images/8.png');background-size: 100% 100%;width: 100%;height: 85px">
        <div class="headerbutton home">
            <img src="${re.contextPath}/plugin/common/images/1.png"/>
            <span>主页</span>
        </div>
        <div class="headerbutton full">
            <img src="${re.contextPath}/plugin/common/images/3.png"/>
            <span>全屏</span>
        </div>
        <div class="headerTitle">
            <img src="${re.contextPath}/plugin/common/images/4.png"/>
            <span>大数据统计</span>
        </div>
        <div id="datetime">
            <script>
                function showLocale(objD) {
                    var str;
                    var yy = objD.getYear();
                    if (yy < 1900) yy = yy + 1900;
                    var MM = objD.getMonth() + 1;
                    if (MM < 10) MM = '0' + MM;
                    var dd = objD.getDate();
                    if (dd < 10) dd = '0' + dd;
                    var hh = objD.getHours();
                    if (hh < 10) hh = '0' + hh;
                    var mm = objD.getMinutes();
                    if (mm < 10) mm = '0' + mm;
                    var ss = objD.getSeconds();
                    if (ss < 10) ss = '0' + ss;
                    var ww = objD.getDay();
                    // if ( ww==0 ) colorhead="<font color=\"#FF0000\">";
                    // if ( ww > 0 && ww < 6 ) colorhead="<font color=\"#373737\">";
                    // if ( ww==6 ) colorhead="<font color=\"#008000\">";
                    if (ww == 0) ww = "星期日";
                    if (ww == 1) ww = "星期一";
                    if (ww == 2) ww = "星期二";
                    if (ww == 3) ww = "星期三";
                    if (ww == 4) ww = "星期四";
                    if (ww == 5) ww = "星期五";
                    if (ww == 6) ww = "星期六";
                    colorfoot = "</font>"
                    str = yy + "-" + MM + "-" + dd + " " + ww + " " + hh + ":" + mm + ":" + ss;
                    //alert(str);
                    return str;
                }

                setInterval("document.getElementById('datetime').innerHTML=showLocale(new Date());", 1000);
            </script>
        </div>
    </div>
    <div class="Right fr"
         style="background-image: url('${re.contextPath}/plugin/common/images/9.png');background-size: 100% 100%;">
        <div class="project  fl" style="width:96%;margin-top: 0" ;>
            <div id="f1" class="fl" style="width: 30%;height: 800px;">
                <div class="fl charmk"
                     style="height: 33.3%;width:96%;margin-top:-6px;background-image: url('${re.contextPath}/plugin/common/images/6x.png');background-size: 100% 100%;">
                    <div class="mksm"
                         style="position:relative;color: #FFFFFF;text-align: center;margin-top: -4px;font-size: 13px">
                        <#--                        项目签单模块-->
                    </div>
                    <#--  <div id="main_qd" class="fl " <#if '${zs}'=='1'> onclick="qd_click()" </#if>
                           style="width: 100%;height:86%;"></div>-->
                </div>
                <div class="fl charmk"
                     style="height: 33.3%;width:96%;margin-top:6px;background-image: url('${re.contextPath}/plugin/common/images/6x.png');background-size: 100% 100%;">
                    <div class="mksm"
                         style="position:relative;color: #FFFFFF;text-align: center;margin-top: -4px;font-size: 13px">
                        <#--                        项目进度模块-->
                    </div>
                    <#--  <div id="main_progress" class="fl " <#if '${zs}'=='1'> onclick="jd_click()" </#if>
                           style="width: 100%;height:86%;"></div>-->
                </div>
                <div class="fl charmk"
                     style="height: 33.3%;width:96%;margin-top:6px;display:inline-block;background-image: url('${re.contextPath}/plugin/common/images/6x.png');background-size: 100% 100%;">
                    <div class="mksm"
                         style="position:relative;color: #FFFFFF;text-align: center;margin-top: -4px;font-size: 13px">
                        <#--                        人员情况模块-->
                    </div>
                    <#--                    <div id="main_rydb1" class="fl  per" <#if '${zs}'=='1'> onclick="ryqk_click()" </#if>-->
                    <#--                         style="width: 33.3%;height:86%;float: left;"></div>-->
                    <#--                    <div id="main_rydb2" class="fl  per" <#if '${zs}'=='1'> onclick="ryqk_click()" </#if>-->
                    <#--                         style="width: 33.3%;height:86%;float: left;"></div>-->
                    <#--                    <div id="main_rydb3" class="fl  per" <#if '${zs}'=='1'> onclick="ryqk_click()" </#if>-->
                    <#--                         style="width: 33.3%;height:86%;float: left;"></div>-->
                </div>
            </div>
            <div id="f2" class="fl"
                 style="width: 40%;height: 800px;margin-top:6px;background-image: url('${re.contextPath}/plugin/common/images/10.png');background-size: 100% 100%">
                <div class="fl" <#if '${zs}'=='1'>onclick="xmfb_click()"</#if> style="height: 15%;width:100%;">
                    <div style="width: 50%;float: left;height: 100%;display: flex">
                        <div style="text-align: center;padding: 15px 55px;margin:15px auto;float: left;background-image: url('${re.contextPath}/plugin/common/images/7.png');background-size: 100% 100%">
                            <div id="zxm" style="color:#ffff00;font-size: 18px;"></div>
                            <div style="font-size: 13px;color: #FFFFFF">公司今年总项目数</div>
                        </div>
                    </div>
                    <div style="width: 50%;float: left;height: 100%;display: flex">
                        <div style="text-align: center;padding: 15px 55px;margin:15px auto;float: left;background-image: url('${re.contextPath}/plugin/common/images/7.png');background-size: 100% 100%">
                            <div id="zhte" style="color:#ffff00;font-size: 18px"></div>
                            <div style="font-size: 13px;color: #FFFFFF">公司今年总合同额</div>
                        </div>
                    </div>
                </div>
                <div class="fl" style="height: 65%;width:100%;">
                    <div id="main_dt" class="fl" style="width: 100%;height:95%;"></div>
                    <div class=""
                         style="width: 100%;height:5%;display: flex;color: #0D9BFF;justify-content: flex-start;padding-left: 3%;">
                        <div style="width: 15%;height: 100%;line-height: normal;float: left;">
                            <input type="checkbox" checked='checked' class="fl" name="projectType"
                                   style="vertical-align:middle;height: 100%;width: 16px;margin: 0 10px;"
                                   onchange="ptypechange(this)"
                                   value="001">
                            <span class="fl" style="vertical-align:middle;color: #339933">监理</span>
                        </div>
                        <div style="width: 15%;height: 100%;line-height: normal;float: left;">
                            <input type="checkbox" checked='checked'
                                   style="vertical-align:middle;height: 100%;width: 16px;margin: 0 10px;" class="fl"
                                   name="projectType" onchange="ptypechange(this)"
                                   value="002">
                            <span class="fl" style="vertical-align:middle;color: #CCD718">咨询</span>
                        </div>
                        <div style="width: 15%;height: 100%;line-height: normal;float: left;">
                            <input type="checkbox" checked='checked'
                                   style="vertical-align:middle;height: 100%;width: 16px;margin: 0 10px;" class="fl"
                                   name="projectType" onchange="ptypechange(this)"
                                   value="003">
                            <span class="fl" style="vertical-align:middle;color: #CC0B18">检测</span>
                        </div>
                    </div>

                </div>
                <div class="fl" style="height:20%;width:100%;">
                    <div class="category clearfix  xmlxdiv">

                    </div>
                    <div style="float: left;width: 30%;height:100%;text-align: center;margin-left: 3%">
                        <div style="margin: 3%">
                            <div id="jlxm" style="color: #FFFF00;font-size: 18px"></div>
                            <div style="background-image: url('${re.contextPath}/plugin/common/images/7.png');background-size: 100% 100%;color: #0D9BFF">
                                监理项目数
                            </div>
                        </div>
                        <div style="margin: 3%">
                            <div id="jlhte" style="color: #FFFF00;font-size: 18px"></div>
                            <div style="background-image: url('${re.contextPath}/plugin/common/images/7.png');background-size: 100% 100%;color: #0D9BFF">
                                监理合同额
                            </div>
                        </div>
                    </div>
                    <div style="float: left;width: 30%;height:100%;text-align: center;margin-left: 3%">
                        <div style="margin: 3%">
                            <div id="zxxm" style="color: #FFFF00;font-size: 18px"></div>
                            <div style="background-image: url('${re.contextPath}/plugin/common/images/7.png');background-size: 100% 100%;color: #0D9BFF">
                                咨询项目数
                            </div>
                        </div>
                        <div style="margin: 3%">
                            <div id="zxhte" style="color: #FFFF00;font-size: 18px"></div>
                            <div style="background-image: url('${re.contextPath}/plugin/common/images/7.png');background-size: 100% 100%;color: #0D9BFF">
                                咨询合同额
                            </div>
                        </div>
                    </div>
                    <div style="float: left;width: 30%;height:100%;text-align: center;margin-left: 3%">
                        <div style="margin: 3%">
                            <div id="jcxm" style="color: #FFFF00;font-size: 18px"></div>
                            <div style="background-image: url('${re.contextPath}/plugin/common/images/7.png');background-size: 100% 100%;color: #0D9BFF">
                                检测项目数
                            </div>
                        </div>
                        <div style="margin: 3%">
                            <div id="jchte" style="color: #FFFF00;font-size: 18px"></div>
                            <div style="background-image: url('${re.contextPath}/plugin/common/images/7.png');background-size: 100% 100%;color: #0D9BFF">
                                检测合同额
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div id="f3" class="fl" style="width: 30%;height: 800px;">
                <div class="fl charmk"
                     style="float:right;height: 33.3%;width:96%;margin-top:-6px;background-image: url('${re.contextPath}/plugin/common/images/6x.png');background-size: 100% 100%;">
                    <div class="mksm"
                         style="position:relative;color: #FFFFFF;text-align: center;margin-top: -4px;font-size: 13px">
                        <#--                        公司合同额模块-->
                    </div>
                    <#-- <div id="main_gsAmount" class="fl" <#if '${zs}'=='1'> onclick="gshte_click()" </#if>
                          style="width: 100%;height:86%;"></div>-->
                </div>
                <div class="fl charmk"
                     style="float:right;height: 33.3%;width:96%;margin-top:6px;background-image: url('${re.contextPath}/plugin/common/images/6x.png');background-size: 100% 100%;">
                    <div class="mksm"
                         style="position:relative;color: #FFFFFF;text-align: center;margin-top: -4px;font-size: 13px">
                        <#--                        总部合同额模块-->
                    </div>
                    <#--                    <div id="main_zbAmount" class="fl" <#if '${zs}'=='1'> onclick="zbhte_click()" </#if>-->
                    <#--                         style="width: 100%;height:86%;"></div>-->
                </div>
                <div class="fl charmk"
                     style="float:right;height: 33.3%;width:96%;margin-top:6px;background-image: url('${re.contextPath}/plugin/common/images/6x.png');background-size: 100% 100%;">
                    <div class="mksm"
                         style="position:relative;color: #FFFFFF;text-align: center;margin-top: -4px;font-size: 13px">
                        <#--                        合同额对比模块-->
                    </div>
                    <#--                    <div id="main_hteContrast" class="fl" <#if '${zs}'=='1'> onclick="htedb_click()" </#if>-->
                    <#--                         style="width: 100%;height:86%;"></div>-->
                </div>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript" src="${re.contextPath}/plugin/tools/tool.js"></script>
<script type="text/javascript" charset="utf-8" src="${re.contextPath}/plugin/common/js/tabs.js"></script>
<script type="text/javascript" charset="utf-8" src="${re.contextPath}/plugin/echarts/js/dituJS/china.js"></script>
<#--<script type="text/javascript" src=""-->
<script type="text/javascript">
    var layer;
    var form = layui.form;
    var table = null;
    var tableIns = null;
    var citys = "南海诸岛";
    //注意进度条依赖 element 模块，否则无法进行正常渲染和功能性操作
    var element = "";
    var myChartqd;
    var myChartjd;
    var myChartzz1;
    var myChartzz2;
    var myChartzz3;
    var myChartgsht;
    var myChartzbhg;
    var myCharthtgdb;
    var myChartdt;
    layui.use('element', function () {
        element = layui.element;
    });
    $(function () {
        // type '0' 初始化加载地图
        getDataInit('', '0');
    })

    function getDataInit(protype, type) {
        var jsondata = {};
        var initdt = "";
        if (protype) {
            jsondata.projectTypeStr = protype;
            initdt = "1";
        }

        layerAjaxGet('/search/BigScreen/getData', jsondata, '', function (d) {
            if (d.flag == true) {
                var data = d.data;
                doData(data, type);
            } else {
                layer.msg(d.msg, {icon: 2});
            }
        });
    }

    //---- 主页按钮点击
    $('.home').on('click', function () {
        if ("${zs}" == '1') {
            window.parent._showtab('cf8c85d3685a48abb23a4104ef25997c', '智能检索', '/search/znSerch/searchIndex');
        }
    })

    //---- 全屏展示
    $('.full').on('click', function () {
        fullScreenFun();
    })

    function ptypechange(object) {
        var arr = [];
        $('input[name="projectType"]:checked').each(function () {
            arr.push($(this).val());
        });
        var ptype = arr.toString();
        // type '1'  复选框加载地图
        getDataInit(ptype, '1')
    }

    var iFullscreen = false; //当前是否全屏状态
    function fullScreenFun() {

        var fullscreenEnabled = document.fullscreenEnabled ||
            document.mozFullScreenEnabled ||
            document.webkitFullscreenEnabled ||
            document.msFullscreenEnabled;

        if (fullscreenEnabled) {
            var de = document.documentElement;
            if (iFullscreen) {
                //关闭全屏
                if (document.exitFullscreen) {
                    document.exitFullscreen();
                } else if (document.mozCancelFullScreen) {
                    document.mozCancelFullScreen();
                } else if (document.webkitCancelFullScreen) {
                    document.webkitCancelFullScreen();
                }
                iFullscreen = false
                $("#f1").css("height", "800px");
                $("#f2").css("height", "800px");
                $("#f3").css("height", "800px");
                // $("#main_qd").css("height","229px");
                $("#main_qd").find("div").css("margin", "0px");
            } else {
                var hi = document.body.clientHeight - 45;
                $("#f1").css("height", hi + "px");
                $("#f2").css("height", hi + "px");
                $("#f3").css("height", hi + "px");
                $("#main_qd").find("div").css("margin", "25px auto");
                $("#main_progress").find("div").css("margin", "0px auto");
                $("#main_gsAmount").find("div").css("margin", "0px auto");
                $("#main_zbAmount").find("div").css("margin", "0px auto");
                $("#main_hteContrast").find("div").css("margin", "0px auto");
                //打开全屏
                if (de.requestFullscreen) {
                    de.requestFullscreen();
                } else if (de.mozRequestFullScreen) {
                    de.mozRequestFullScreen();
                } else if (de.webkitRequestFullScreen) {
                    de.webkitRequestFullScreen();
                }
                iFullscreen = true
            }
        } else {
            alert('浏览器当前不能全屏');
        }
    }


    function doData(data, type) {
        for (var i = 0; i < data.length; i++) {
            var jsondata = data[i];
            // debugger;
            if (type == '1') {
                //只从新加载地图
                myChartdt.clear();
                var xmfbbdata = jsondata['xmfb'];
                if (xmfbbdata) {
                    doxmfbbdata(xmfbbdata);
                }
            } else {
                var qddata = jsondata['qd'];
                if (qddata) {
                    // 签单数据
                    doQddata(qddata);
                }
                var jddata = jsondata['jd'];
                if (jddata) {
                    doJddata(jddata);
                }
                var ryqkdata=jsondata['ryqk'];
                if(ryqkdata) {
                    doryqkdata(ryqkdata);
                }
                var gshtedata = jsondata['gshte'];
                if (gshtedata) {
                    doGshtedata(gshtedata);
                }
                var zbhtedata = jsondata['zbhte'];
                if (zbhtedata) {
                    doZbhtedata(zbhtedata);
                }
                var htedbdata = jsondata['htedb'];
                if (htedbdata) {
                    dohtedbdata(htedbdata);
                }
                var xmbdata = jsondata['xm'];
                if (xmbdata) {
                    doxmbdata(xmbdata);
                }
                var xmfbbdata = jsondata['xmfb'];
                if (xmfbbdata) {
                    doxmfbbdata(xmfbbdata);
                }
            }

        }
    }

    //-------------------签单图-----------start----------------------
    // 处理签单数据
    function doQddata(qddata) {
        var jsonnum = qddata[0];
        var lxNumberArry = [];
        for (var item in jsonnum) {
            var value = jsonnum[item];
            lxNumberArry.push(value);
        }
        var jsonname = qddata[1];
        var lxNameArry = [];
        for (var item in jsonname) {
            var value = jsonname[item];
            lxNameArry.push(value);
        }
        var positData = qddata[2].po;
        qdChar(lxNameArry, lxNumberArry, positData);
    }

    // 项目签单模块
    function qdChar(lxNameArry, lxNumberArry, positData) {
        for (var i = 0; i < positData.length; i++) {
            var y = positData[i];
            $(".charmk").eq(y).find(".mksm").after(" <div id=\"main_qd\" class=\"fl \" <#if '${zs}'=='1'> onclick=\"qd_click()\" </#if>\n" +
                "            style=\"width: 100%;height:86%;\"></div>")
            var char = document.getElementsByClassName("charmk")[y].children[1]
            $(".mksm").eq(y).html("项目签单模块");
            $("#main_qd").find("div").css("margin", "0px auto")
            myChartqd = echarts.init(char);
            var option = {
                title: {
                    // subtext: '数量',
                    // textStyle:{
                    //     color:"#FFFFFF"
                    // }
                },
                tooltip: {},
                legend: {},
                xAxis: {
                    data: lxNameArry,
                    axisLabel: {
                        textStyle: {
                            color: "#FFFFFF"
                        }
                    }
                },
                yAxis: {
                    name: "数量",
                    nameTextStyle: {
                        color: "#FFFFFF"
                    },
                    axisLabel: {
                        textStyle: {
                            color: "#FFFFFF"
                        }
                    }
                },
                series: [{
                    itemStyle: {
                        color: '#9370DB'
                    },
                    type: 'bar',
                    data: lxNumberArry,
                    barWidth: 15,//每个柱状的宽度
                }]
            };
            // 使用刚指定的配置项和数据显示图表。
            myChartqd.setOption(option);

        }

    }

    //-------------------签单图-----------end----------------------


    //-------------------项目进度-----------start----------------------
    // 处理进度数据
    function doJddata(jddata) {
        var jsonnum = jddata[0];
        var numberArry = [];
        for (var item in jsonnum) {
            var value = jsonnum[item];
            numberArry.push(value);
        }
        var jsonname = jddata[1];
        var nameArry = [];
        for (var item in jsonname) {
            var value = jsonname[item];
            nameArry.push(value);
        }
        var positData = jddata[2].po;
        progress(nameArry, numberArry, positData);
    }

    // 项目进度模块
    function progress(name, num, positData) {

        for (var i = 0; i < positData.length; i++) {
            var y = positData[i];
            var char = document.getElementsByClassName("charmk")[y].children[1];
            $(".charmk").eq(y).find(".mksm").after("<div id=\"main_progress\" class=\"fl \" <#if '${zs}'=='1'> onclick=\"jd_click()\" </#if>\n" +
                "                         style=\"width: 100%;height:86%;\"></div>")
            var char = document.getElementsByClassName("charmk")[y].children[1];
            $(".mksm").eq(y).html("项目进度模块");
            myChartjd = echarts.init(char, 'shine');
            // 指定图表的配置项和数据
            var option = {
                tooltip: {
                    trigger: 'axis',
                    axisPointer: {            // 坐标轴指示器，坐标轴触发有效
                        type: 'shadow'        // 默认为直线，可选为：'line' | 'shadow'
                    },
                    extraCssText: 'width:120px; white-space:pre-wrap'
                },
                grid: {
                    left: '3%',
                    right: '4%',
                    bottom: '3%',
                    containLabel: true
                },
                xAxis: {
                    type: 'category',
                    data: name,
                    inside: false,
                    axisLabel: {  //展示角度
                        interval: 0,
                        rotate: 50,
                    },
                    axisTick: {
                        alignWithLabel: true
                    },
                    axisLabel: {
                        // 坐标轴刻度标签的相关设置。
                        show: true,
                        interval: 0,
                        textStyle: {
                            color: "#FFFFFF"
                        },
                        formatter: function (name) {   //关键代码
                            var res = name
                            if (res.length > 2) {
                                res = res.substring(0, 2) + ''
                            }
                            return res
                        },
                    }
                },
                yAxis: {
                    name: '百分比',
                    nameTextStyle: {
                        color: "#FFFFFF"
                    },
                    type: 'value',
                    axisLabel: {
                        textStyle: {
                            color: "#FFFFFF"
                        }
                    }
                },
                series: [
                    {
                        name: '进度',
                        type: 'bar',
                        barWidth: '20%',
                        itemStyle: {
                            normal: {
                                color: '#64C7E7'
                            }
                        },
                        data: num
                    }
                ]
            };
            // 使用刚指定的配置项和数据显示图表。
            myChartjd.setOption(option);


        }

    }

    //-------------------项目进度-----------end----------------------

    //-------------------人员情况-----------start----------------------
    // 处理进度数据
    function doryqkdata(jddata) {

        situation(jddata);
    }

    //人员情况模块
    function situation(jddata) {
        var positData = jddata[jddata.length - 1].po;
        var k = 0;
        for (var i = 0; i < positData.length; i++) {
            var y = positData[i];
            var char = document.getElementsByClassName("charmk")[y].children[1];
            k = k + 1;
            $(".charmk").eq(y).find(".mksm").after("<div id=\"main_rydb" + k + "\" class=\"fl  per\" <#if '${zs}'=='1'> onclick=\"ryqk_click()\" </#if>\n" +
                "                         style=\"width: 33.3%;height:86%;float: left;\"></div>");
            k = k + 1;
            $(".charmk").eq(y).find(".mksm").after("<div id=\"main_rydb" + k + "\" class=\"fl  per\" <#if '${zs}'=='1'> onclick=\"ryqk_click()\" </#if>\n" +
                "                         style=\"width: 33.3%;height:86%;float: left;\"></div>");
            k = k + 1;
            $(".charmk").eq(y).find(".mksm").after("<div id=\"main_rydb" + k + "\" class=\"fl  per\" <#if '${zs}'=='1'> onclick=\"ryqk_click()\" </#if>\n" +
                "                         style=\"width: 33.3%;height:86%;float: left;\"></div>");
            $(".mksm").eq(y).html("人员情况模块");
            var c1 = k - 2;
            var c2 = k - 1;
            var c3 = k;
            myChartzz1 = echarts.init(document.getElementById('main_rydb' + c1));
            myChartzz2 = echarts.init(document.getElementById('main_rydb' + c2));
            myChartzz3 = echarts.init(document.getElementById('main_rydb' + c3));
            //业务类型分析
            var optionzz1 = {
                tooltip: {
                    trigger: 'item',
                },
                legend: {
                    // top: 'bottom',
                    // orient: 'vertical',
                    // left: 'left'
                    top: 'bottom',
                    left: 'center',
                    textStyle: {
                        color: "#FFFFFF"
                    }
                },
                graphic: {
                    type: "text",
                    left: "center",
                    top: "33%",
                    style: {
                        text: "业务",
                        textAlign: "center",
                        fill: "#FFFFFF",
                        fontSize: 14,
                        fontWeight: 200
                    }
                },
                color: ['#61C8F9', '#8C4BFA', '#43A1A9', '#02ABFA'],
                series: [
                    {
                        name: '业务类型',
                        type: 'pie',
                        radius: ['60%', '80%'],
                        avoidLabelOverlap: false,
                        label: {
                            show: false,
                            position: 'center',
                            // textStyle:{
                            //     color:"#FFFFFF"
                            // }
                        },
                        center: ['50%', '35%'],//控制圆位置
                        emphasis: {
                            label: {
                                show: false,
                                fontSize: '18',
                                fontWeight: 'bold'
                            }
                        },
                        labelLine: {
                            show: false,
                        },
                        data: jddata[0]
                    }
                ]
            };
            // 使用刚指定的配置项和数据显示图表。
            myChartzz1.setOption(optionzz1);
            // 年龄分析
            var optionzz2 = {
                tooltip: {
                    trigger: 'item'
                },
                legend: {
                    // top: 'bottom',
                    // orient: 'vertical',
                    // left: 'right'
                    top: 'bottom',
                    left: 'center',
                    textStyle: {
                        color: "#FFFFFF"
                    }
                },
                graphic: {
                    type: "text",
                    left: "center",
                    top: "33%",
                    style: {
                        text: "年龄",
                        textAlign: "center",
                        fill: "#FFFFFF",
                        fontSize: 14,
                        fontWeight: 200
                    }
                },
                color: ['#61C8F9', '#8C4BFA', '#43A1A9'],
                series: [
                    {
                        name: '年龄',
                        type: 'pie',
                        radius: ['60%', '80%'],
                        avoidLabelOverlap: false,
                        label: {
                            show: false,
                            position: 'center',
                            // textStyle:{
                            // color:"#FFFFFF"
                            // }
                        },
                        center: ['50%', '35%'],//控制圆位置
                        emphasis: {
                            label: {
                                show: false,
                                fontSize: '18',
                                fontWeight: 'bold'
                            }
                        },
                        labelLine: {
                            show: false,
                        },
                        data: jddata[1]
                    }
                ]
            };
            // 使用刚指定的配置项和数据显示图表。
            myChartzz2.setOption(optionzz2);
            // 学历分析
            var optionzz3 = {
                tooltip: {
                    trigger: 'item',
                    position: function (p, params, dom, rect, size) {
                        return dom.style.transform = 'translateZ(0)';
                    },
                },
                legend: {
                    top: 'bottom',
                    left: 'center',
                    textStyle: {
                        color: "#FFFFFF"
                    },
                    // orient:"vertical"
                },
                graphic: {
                    type: "text",
                    left: "center",
                    top: "33%",
                    style: {
                        text: "学历",
                        textAlign: "center",
                        fill: "#FFFFFF",
                        fontSize: 14,
                        fontWeight: 200
                    }
                },
                color: ['#61C8F9', '#8C4BFA', '#43A1A9'],
                series: [
                    {
                        name: '学历',
                        type: 'pie',
                        radius: ['60%', '80%'],
                        avoidLabelOverlap: false,
                        label: {
                            show: false,
                            position: 'center',
                            // textStyle:{
                            //     color:"#FFFFFF"
                            // }
                        },
                        center: ['50%', '35%'],//控制圆位置
                        emphasis: {
                            label: {
                                show: false,
                                fontSize: '18',
                                fontWeight: 'bold'
                            }
                        },
                        labelLine: {
                            show: false,
                        },
                        data: jddata[2]
                    }
                ]
            };
            // 使用刚指定的配置项和数据显示图表。
            myChartzz3.setOption(optionzz3);

        }


    }

    //-------------------人员情况-----------end----------------------

    //-------------------公司合同额-----------start----------------------
    // 处理进度数据
    function doGshtedata(jddata) {
        var monthName = jddata[0];
        var amount = [];
        amount.push(jddata[1]);
        if (jddata[2] && !jddata[2].po) {
            amount.push(jddata[2]);
        }
        if (jddata[3] && !jddata[3].po) {
            amount.push(jddata[3]);
        }
        var positData = jddata[jddata.length - 1].po;
        companyAmount(monthName, amount, positData);
    }

    //公司合同额模块
    function companyAmount(monthName, amount, positData) {
        for (var i = 0; i < positData.length; i++) {
            var y = positData[i];
            $(".charmk").eq(y).find(".mksm").after(" <div id=\"main_gsAmount\" class=\"fl\" <#if '${zs}'=='1'> onclick=\"gshte_click()\" </#if>\n" +
                "                         style=\"width: 100%;height:86%;\"></div>")
            var char = document.getElementsByClassName("charmk")[y].children[1];
            $(".mksm").eq(y).html("公司合同额模块");
            myChartgsht = echarts.init(char);
            option = {
                tooltip: {
                    trigger: 'axis'
                },
                color: ['#61C8F9', '#7C7476', '#43A1A9'],
                grid: {
                    left: '3%',
                    // right: '4%',
                    bottom: '3%',
                    containLabel: true
                },
                xAxis: {
                    type: 'category',
                    boundaryGap: false,
                    data: monthName,
                    axisLabel: {
                        textStyle: {
                            color: "#FFFFFF"
                        }
                    }
                },
                yAxis: {
                    name: '万元',
                    nameTextStyle: {
                        color: "#FFFFFF"
                    },
                    type: 'value',
                    axisLabel: {
                        textStyle: {
                            color: "#FFFFFF"
                        }
                    }
                },
                series: amount
            };
            // 使用刚指定的配置项和数据显示图表。
            myChartgsht.setOption(option);

        }


    }

    //-------------------公司合同额-----------end----------------------

    //-------------------总部合同额-----------start----------------------
    // 处理进度数据
    function doZbhtedata(jddata) {
        var monthName = jddata[0];
        var amount = jddata[1];
        var positData = jddata[jddata.length - 1].po;
        headquartersAmount(monthName, amount, positData);
    }

    //总部合同额模块
    function headquartersAmount(monthName, amount, positData) {
        for (var i = 0; i < positData.length; i++) {
            var y = positData[i];
            $(".charmk").eq(y).find(".mksm").after("<div id=\"main_zbAmount\" class=\"fl\" <#if '${zs}'=='1'> onclick=\"zbhte_click()\" </#if>\n" +
                "                         style=\"width: 100%;height:86%;\"></div>")
            var char = document.getElementsByClassName("charmk")[y].children[1];
            $(".mksm").eq(y).html("总部合同额模块");
            myChartzbhg = echarts.init(char);
            option = {
                tooltip: {
                    trigger: 'axis',
                    axisPointer: {
                        type: 'shadow'
                    }
                },
                grid: {
                    left: '3%',
                    // right: '4%',
                    bottom: '3%',
                    containLabel: true
                },
                xAxis: {
                    name: '万元',
                    nameTextStyle: {
                        color: "#FFFFFF"
                    },
                    type: 'value',
                    boundaryGap: [0, 0.01],
                    axisLabel: {
                        textStyle: {
                            color: "#FFFFFF"
                        },
                        interval: 0,
                        rotate: 50,
                        formatter: function (monthName) {   //关键代码
                            var res = monthName
                            if (res.length > 8) {
                                res = res.substring(0, 7) + '..'
                            }
                            return res
                        }
                    },
                },
                yAxis: {
                    type: 'category',
                    data: monthName,
                    axisLabel: {
                        textStyle: {
                            color: "#FFFFFF"
                        }
                    }
                },
                series: [
                    {
                        type: 'bar',
                        data: amount,
                        barWidth: 15,
                        itemStyle: {
                            normal: {
                                color: '#6DAEF2'
                            }
                        }
                    }
                ]
            };
            // 使用刚指定的配置项和数据显示图表。
            myChartzbhg.setOption(option);
        }

    }

    //-------------------总部合同额-----------end----------------------

    //-------------------合同额对比-----------start----------------------
    // 处理进度数据
    function dohtedbdata(jddata) {
        var monthName = jddata[0];
        var amount = jddata[1];
        var positData = jddata[jddata.length - 1].po;
        amountContrast(monthName, amount, positData);
    }

    //合同额对比模块
    function amountContrast(monthName, amount, positData) {
        console.log('monthName',monthName)
        console.log('amount',amount)
        console.log('positData',positData)
        for (var i = 0; i < positData.length; i++) {
            var y = positData[i];
            $(".charmk").eq(y).find(".mksm").after("<div id=\"main_hteContrast\" class=\"fl\" <#if '${zs}'=='1'> onclick=\"htedb_click()\" </#if>\n" +
                "                         style=\"width: 100%;height:86%;\"></div>")
            var char = document.getElementsByClassName("charmk")[y].children[1];
            $(".mksm").eq(y).html("合同额对比模块");
            myCharthtgdb = echarts.init(char);
            var option = {
                tooltip: {
                    trigger: 'axis',
                    axisPointer: {            // 坐标轴指示器，坐标轴触发有效
                        type: 'shadow'        // 默认为直线，可选为：'line' | 'shadow'
                    }
                },
                grid: {
                    left: '3%',
                    right: '4%',
                    bottom: '3%',
                    containLabel: true
                },
                xAxis: {
                    // show:"false",
                    type: 'category',
                    data: monthName,
                    inside: false,
                    // axisLabel: {  //展示角度
                    //
                    // },
                    axisTick: {
                        alignWithLabel: true
                    },
                    axisLabel: {
                        interval: 0,
                        rotate: 50,
                        // 坐标轴刻度标签的相关设置。
                        show: true,
                        interval: 0,
                        formatter: function (monthName) {   //关键代码
                            var res = monthName
                            if (res.length > 4) {
                                res = res.substring(0, 3) + '..'
                            }
                            return res
                        },
                        textStyle: {
                            color: "#FFFFFF"
                        }
                    }
                },
                yAxis: {
                    name: '万元',
                    nameTextStyle: {
                        color: "#FFFFFF"
                    },
                    type: 'value',
                    axisLabel: {
                        textStyle: {
                            color: "#FFFFFF"
                        }
                    }
                },
                series: [
                    {
                        name: '合同额',
                        type: 'bar',
                        barWidth: '20%',
                        itemStyle: {
                            normal: {
                                color: '#A7A1FF'
                            }
                        },
                        data: amount
                    }
                ]
            };
            // 使用刚指定的配置项和数据显示图表。
            myCharthtgdb.setOption(option);


        }


    }

    //-------------------合同额对比-----------end----------------------

    //-------------------项目分布-----------start----------------------
    //
    function doxmbdata(jddata) {
        $("#zxm").text(jddata[0].zxm);
        $("#zhte").text(jddata[0].zhte + "(万)");
        $("#jlxm").text(jddata[0].jlxm);
        $("#jlhte").text(jddata[0].jlhte);
        $("#zxxm").text(jddata[0].zxxm);
        $("#zxhte").text(jddata[0].zxhte);
        $("#jcxm").text(jddata[0].jcxm);
        $("#jchte").text(jddata[0].jchte);
    }

    // 处理进度数据
    function doxmfbbdata(jddata) {
        // 红旗数据[{name:value}]
        var hq_data = jddata[0];
        //地区省份散点
        var sd_data = jddata[1];
        //项目个数和合同金额
        var num_data = jddata[2];
        //总部五角星
        var shandong = [{name: '山东', value: 200}];

        distribution(sd_data, num_data, hq_data, shandong);
    }

    //地图
    function distribution(arr, num_data, hq_data, shandong) {
        myChartdt = echarts.init(document.getElementById('main_dt'));
        var mapName = 'china';
        var data1 = arr;
        // console.log(arr);
        var geoCoordMap = {};
        var toolTipData = num_data;

        /*获取地图数据*/
        myChartdt.showLoading();
        // 获取地图的经纬度--start--------
        var mapFeatures = echarts.getMap(mapName).geoJson.features;
        myChartdt.hideLoading();
        mapFeatures.forEach(function (v) {
            // 地区名称
            var name = v.properties.name;
            // 地区经纬度
            geoCoordMap[name] = v.properties.cp;

        });
        var mapFeaturesss = echarts.getMap("chinacity").geoJson.features;
        mapFeaturesss.forEach(function (v) {
            // 地区名称
            var name = v.properties.name;
            // 地区经纬度
            geoCoordMap[name] = v.properties.cp;
        });


        var max = 480,
            min = 9; // todo
        var maxSize4Pin = 100,
            minSize4Pin = 20;
        // 将 data{name,value} 转换成  name ,clour,经纬度--value
        var convertData = function (data) {
            var res = [];
            for (var i = 0; i < data.length; i++) {
                var geoCoord = geoCoordMap[data[i].name];
                // console.log(data[i].symbol)
                if (geoCoord) {
                    res.push({
                        name: data[i].name,
                        value: geoCoord.concat(data[i].value),
                        symbol: data[i].symbol,
                        color: data[i].color
                    });
                }
            }
            return res;
        };
        option = {
            tooltip: {
                padding: 0,
                enterable: true,
                transitionDuration: 1,
                textStyle: {
                    color: '#000',
                    decoration: 'none',
                },
                // position: function (point, params, dom, rect, size) {
                //   return [point[0], point[1]];
                // },
                formatter: function (params) {
                    // console.log(params)
                    var tipHtml = '';
                    //鼠标放在城市名上不展示内容
                    if (toolTipData) {
                        tipHtml = '<div style="width:300px;height:180px;background:rgba(22,80,158,0.8);border:1px solid rgba(7,166,255,0.7)">'
                            + '<div style="width:260px;height:40px;line-height:40px;border-bottom:2px solid rgba(7,166,255,0.7);padding:0 20px">' + '<i style="display:inline-block;width:8px;height:8px;background:#16d6ff;border-radius:40px;">' + '</i>'
                            + '<span style="margin-left:10px;color:#fff;font-size:16px;">' + params.name + '</span>' + '</div>'
                            + '<div style="padding:20px">';
                        if (content(params.name, toolTipData)) {//省份没有项目不展示
                            tipHtml = tipHtml + content(params.name, toolTipData);
                        }
                    }
                    return tipHtml;
                }
            },
            geo: {
                show: true,
                map: mapName,
                roam: true,
                zoom: 1,
                center: [103.837959, 36.072397],
                label: {
                    emphasis: {
                        show: false
                    }
                },
                label: {
                    normal: {
                        show: false
                    },
                    emphasis: {
                        show: false,
                    }
                },
                roam: true,
                itemStyle: {
                    normal: {
                        areaColor: '#023677',
                        borderColor: '#1180c7',
                    },
                    emphasis: {
                        areaColor: '#4499d0',
                    }
                },
                // layoutCenter: ['30%', '30%'],
                // layoutSize: 100,
            },
            series: [{
                name: '散点',
                type: 'scatter',
                coordinateSystem: 'geo',
                data: convertData(data1),
                symbolSize: function (val) {
                    return val[2] / 10;
                },
                label: {
                    normal: {
                        formatter: '{b}',
                        position: 'right',
                        show: true
                    },
                    emphasis: {
                        show: true
                    }
                },
                itemStyle: {
                    normal: {
                        color: function (e) {
                            var color = '#fff';
                            if (e.data.color) {
                                var color = e.data.color;
                            }
                            return color;
                        }
                    }
                },
            }, {
                    /*		type: 'map',
                            map: mapName,
                            geoIndex: 0,
                            aspectScale: 0.75, //长宽比
                            showLegendSymbol: false, // 存在legend时显示*/

                    type: 'map',
                    zoom: 1,
                    map: mapName,
                    geoIndex: 0,
                    aspectScale: 0.75, //长宽比
                    showLegendSymbol: false, // 存在legend时显示*/
                    label: {
                        normal: {
                            show: true
                        },
                        emphasis: {
                            show: false,
                            textStyle: {
                                color: '#fff'
                            }
                        }
                    },
                    roam: true,
                    itemStyle: {
                        normal: {
                            areaColor: '#031525',
                            borderColor: '#3B5077',
                        },
                        emphasis: {
                            areaColor: '#2B91B7'
                        }
                    },
                    animation: false,
                    data: data1
                },
                { //总公司用五角星标注
                    type: 'scatter',
                    coordinateSystem: 'geo',
                    label: {
                        normal: {
                            show: false,
                            color: '#fff',
                            fontWeight: 'bold',
                            formatter: function (para) {
                                return '{cnNum|' + para.data.value[2] + '}'
                            },
                            rich: {
                                cnNum: {
                                    fontSize: 13,
                                    color: '#D4EEFF',
                                    left: 'center'
                                },
                            }
                        },
                    },
                    symbol: 'image://',
                    symbolSize: [30, 30],
                    z: 999,
                    data: convertData(shandong),
                },
                { //分公司用红旗标注
                    type: 'scatter',
                    coordinateSystem: 'geo',
                    label: {
                        normal: {
                            show: false,
                            color: '#fff',
                            fontWeight: 'bold',
                            formatter: function (para) {
                                return '{cnNum|' + para.data.value[2] + '}'
                            },
                            rich: {
                                cnNum: {
                                    fontSize: 13,
                                    color: '#D4EEFF',
                                    left: 'center'
                                },
                            }
                        },
                    },
                    symbol: 'path://M54.227,12.611c-0.338-0.336-0.736-0.505-1.196-0.505c-0.229,0-0.712,0.188-1.446,0.559  c-0.735,0.372-1.515,0.786-2.336,1.248c-0.823,0.459-1.797,0.875-2.921,1.247c-1.123,0.371-2.163,0.559-3.12,0.559  c-0.884,0-1.664-0.168-2.336-0.505c-2.229-1.044-4.168-1.823-5.814-2.337c-1.646-0.513-3.416-0.771-5.311-0.771  c-3.272,0-6.999,1.064-11.177,3.188c-0.862,0.43-1.48,0.763-1.88,1.007l-0.397-2.911c0.897-0.779,1.476-1.914,1.476-3.195  c0-2.347-1.902-4.249-4.249-4.249c-2.347,0-4.249,1.902-4.249,4.249c0,1.531,0.818,2.862,2.032,3.61l5.74,42.09  c0.171,1.253,1.243,2.162,2.474,2.162c0.112,0,0.226-0.007,0.341-0.022c1.368-0.188,2.326-1.447,2.139-2.815L19.69,38.303  c4.186-2.077,7.807-3.124,10.853-3.124c1.293,0,2.554,0.193,3.783,0.583c1.23,0.391,2.253,0.815,3.067,1.274  c0.814,0.46,1.775,0.886,2.88,1.274c1.107,0.39,2.2,0.585,3.279,0.585c2.726,0,5.991-1.027,9.796-3.08  c0.478-0.248,0.828-0.492,1.049-0.731c0.221-0.239,0.332-0.579,0.332-1.021V13.806C54.729,13.347,54.562,12.948,54.227,12.611z',
                    symbolSize: [15, 15],
                    z: 999,
                    color: 'red',
                    data: convertData(hq_data),
                }, {
                    type: "map",
                    map: name,
                    // center: [104.114129, 37.550339],//当前视角的中心点
                    zoom: 1, //当前视角的缩放比例
                    roam: true, //是否开启平游或缩放
                    scaleLimit: { //滚轮缩放的极限控制
                        min: 1,
                        max: 2
                    },
                }

            ]
        };

        var index = 0; //播放所在下标
        myChartdt.dispatchAction({
            seriesIndex: 0,
            dataIndex: index
        });
        index++;
        if (index >= option.series[0].data.length) {
            index = 0;
        }

        myChartdt.on('mouseover', function (params) {
            // console.log(params)
            myChartdt.dispatchAction({
                type: 'showTip',
                seriesIndex: 0,
                dataIndex: params.dataIndex,
            });
        });
        // 使用刚指定的配置项和数据显示图表。
        myChartdt.setOption(option);
    }

    window.onresize = function () {
        myChartdt.resize();
    }

    //-------------------项目分布-----------end----------------------
    function content(name, arr) {
        var label;
        for (var i = 0; i < arr.length; i++) {
            if (arr[i].name) {
                if (arr[i].name === name) {
                    label = '<p style="color:#fff;font-size:12px;">' + '<i style="display:inline-block;width:10px;height:10px;background:#16d6ff;border-radius:40px;margin:0 8px">' + '</i>'
                        + '项目数：' + '<span style="color:#11ee7d;margin:0 6px;">' + arr[i].zsl + '</span>' + '个' + '</p>'
                        + '<p style="color:#fff;font-size:12px;">' + '<i style="display:inline-block;width:10px;height:10px;background:#16d6ff;border-radius:40px;margin:0 8px">' + '</i>'
                        + '总合同额：' + '<span style="color:#f48225;margin:0 6px;">' + arr[i].zje + '</span>' + '万元' + '</p>'
                        + '<p style="color:#fff;font-size:12px;">' + '<i style="display:inline-block;width:10px;height:10px;background:#16d6ff;border-radius:40px;margin:0 8px">' + '</i>'
                        + '监理项目数/合同金额：' + '<span style="color:#f4e925;margin:0 6px;">' + arr[i].jlsl + '</span>' + '个' + '<span style="color:#f4e925;margin:0 6px;">' + arr[i].jlje + '</span>' + '万元' + '</p>'
                        + '<p style="color:#fff;font-size:12px;">' + '<i style="display:inline-block;width:10px;height:10px;background:#16d6ff;border-radius:40px;margin:0 8px">' + '</i>'
                        + '咨询项目数/合同金额：' + '<span style="color:#f4e925;margin:0 6px;">' + arr[i].zxsl + '</span>' + '个' + '<span style="color:#f4e925;margin:0 6px;">' + arr[i].zxje + '</span>' + '万元' + '</p>'
                        + '<p style="color:#fff;font-size:12px;">' + '<i style="display:inline-block;width:10px;height:10px;background:#16d6ff;border-radius:40px;margin:0 8px">' + '</i>'
                        + '检测项目数/合同金额：' + '<span style="color:#f4e925;margin:0 6px;">' + arr[i].jcsl + '</span>' + '个' + '<span style="color:#f4e925;margin:0 6px;">' + arr[i].jcje + '</span>' + '万元' + '</p>';
                    return label;
                }
            }
        }
    }

    //点击签单模块跳转
    function qd_click() {
        var qdshow='${qdshow}';
        if(qdshow=="1"){
            if (IEVersion() == -1) {
                document.exitFullscreen();
            }
            window.parent._showtab('89ffc88079d04609a9abb45423b78795', '项目签单模块', '/search/analysis/signing', function (iframe) {
            });
        }

    }

    //点击项目进度模块跳转
    function jd_click() {
        var jdshow='${jdshow}';
        if(jdshow=="1"){
            if (IEVersion() == -1) {
                document.exitFullscreen();
            }
            window.parent._showtab('234ac4520e35466e8626fb914fcca34c', '项目进度模块', '/search/analysis/progress', function (iframe) {
            });
        }

    }

    //点击人员情况模块跳转
    function ryqk_click() {

        var ryshow='${ryshow}';
        if(ryshow=="1"){
            if (IEVersion() == -1) {
                document.exitFullscreen();
            }
            window.parent._showtab('5a48d5ffd08f479d8587acc68240d5f2', '人员情况模块', '/search/analysis/situation', function (iframe) {
            });
        }


    }

    //点击公司合同额模块跳转
    function gshte_click() {
        var gshteshow='${gshteshow}';
        if(gshteshow=="1"){
            if (IEVersion() == -1) {
                document.exitFullscreen();
            }
            window.parent._showtab('98bbdcdb2a59453dbeb3bdd45b28223a', '公司合同额模块', '/search/analysis/company/amount', function (iframe) {
            });
        }
    }

    //点击总部合同额模块跳转
    function zbhte_click() {
        var zbhteshow='${zbhteshow}';
        if(zbhteshow=="1"){
            if (IEVersion() == -1) {
                document.exitFullscreen();
            }
            window.parent._showtab('45eaae0131df4d71bcce7e879bfe16fd', '总部合同额模块', '/search/analysis/headquarters/amount', function (iframe) {
            });
        }

    }

    //点击合同额对比模块跳转
    function htedb_click() {
        var htedbshow='${htedbshow}';
        if(htedbshow=="1"){
            if (IEVersion() == -1) {
                document.exitFullscreen();
            }
            window.parent._showtab('e25f2f7bc19d4417a65bdbe938001e7b', '合同额对比模块', '/search/analysis/amount/contrast', function (iframe) {
            });
        }


    }

    //点击项目分布模块跳转
    function xmfb_click() {
        var xmfbshow='${xmfbshow}';
        if(xmfbshow=="1"){
            if (IEVersion() == -1) {
                document.exitFullscreen();
            }
            window.parent._showtab('cf46b9b220164eb4b374d6e3c89e5c81', '项目分布模块', '/search/analysis/distribution', function (iframe) {
            });
        }


    }

    //判断是否是IE浏览器
    function IEVersion() {
        var userAgent = navigator.userAgent; //取得浏览器的userAgent字符串
        var isIE = userAgent.indexOf("compatible") > -1 && userAgent.indexOf("MSIE") > -1; //判断是否IE<11浏览器
        var isEdge = userAgent.indexOf("Edge") > -1 && !isIE; //判断是否IE的Edge浏览器
        var isIE11 = userAgent.indexOf('Trident') > -1 && userAgent.indexOf("rv:11.0") > -1;
        if (isIE) {
            var reIE = new RegExp("MSIE (\\d+\\.\\d+);");
            reIE.test(userAgent);
            var fIEVersion = parseFloat(RegExp["$1"]);
            if (fIEVersion == 7) {
                return 7;
            } else if (fIEVersion == 8) {
                return 8;
            } else if (fIEVersion == 9) {
                return 9;
            } else if (fIEVersion == 10) {
                return 10;
            } else {
                return 6;//IE版本<=7
            }
        } else if (isEdge) {
            return 'edge';//edge
        } else if (isIE11) {
            return 11; //IE11
        } else {
            return -1;//不是ie浏览器
        }
    }
</script>
</body>

</html>
